.class public Lcom/privacy/checker/ui/ConsentActivity;
.super Landroid/app/Activity;
.source "ConsentActivity.java"


# static fields
.field private static a:Les/ai0$a;

.field private static b:I

.field private static c:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    sget v0, Les/di0;->gdpr_activity_consent:I

    sput v0, Lcom/privacy/checker/ui/ConsentActivity;->b:I

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method public static a(Landroid/content/Context;ZILjava/lang/String;Les/ai0$a;)V
    .locals 0

    .line 1
    sput-object p4, Lcom/privacy/checker/ui/ConsentActivity;->a:Les/ai0$a;

    .line 2
    sput p2, Lcom/privacy/checker/ui/ConsentActivity;->b:I

    .line 3
    sput-object p3, Lcom/privacy/checker/ui/ConsentActivity;->c:Ljava/lang/String;

    const/4 p2, 0x1

    if-eqz p1, :cond_0

    .line 4
    invoke-static {p0}, Les/fi0;->b(Landroid/content/Context;)Z

    move-result p1

    if-nez p1, :cond_0

    .line 5
    invoke-static {p2}, Lcom/privacy/checker/ui/ConsentActivity;->a(Z)V

    return-void

    .line 6
    :cond_0
    invoke-static {p0}, Les/zh0;->c(Landroid/content/Context;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 7
    invoke-static {p2}, Lcom/privacy/checker/ui/ConsentActivity;->a(Z)V

    return-void

    .line 8
    :cond_1
    new-instance p1, Landroid/content/Intent;

    const-class p2, Lcom/privacy/checker/ui/ConsentActivity;

    invoke-direct {p1, p0, p2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 9
    invoke-virtual {p0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private static a(Z)V
    .locals 1

    .line 10
    sget-object v0, Lcom/privacy/checker/ui/ConsentActivity;->a:Les/ai0$a;

    if-eqz v0, :cond_0

    .line 11
    invoke-interface {v0, p0}, Les/ai0$a;->a(Z)V

    const/4 p0, 0x0

    .line 12
    sput-object p0, Lcom/privacy/checker/ui/ConsentActivity;->a:Les/ai0$a;

    :cond_0
    return-void
.end method


# virtual methods
.method public onBackPressed()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/app/Activity;->onBackPressed()V

    const/4 v0, 0x0

    .line 2
    invoke-static {v0}, Lcom/privacy/checker/ui/ConsentActivity;->a(Z)V

    return-void
.end method

.method public onClickAgree(Landroid/view/View;)V
    .locals 1

    const/4 p1, 0x1

    .line 1
    invoke-static {p0, p1}, Les/zh0;->b(Landroid/content/Context;Z)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    .line 3
    invoke-static {p1}, Lcom/privacy/checker/ui/ConsentActivity;->a(Z)V

    const-string p1, "main"

    const-string v0, "main_btn"

    .line 4
    invoke-static {p0, p1, v0}, Les/gi0;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public onClickTermsService(Landroid/view/View;)V
    .locals 2

    .line 1
    new-instance p1, Landroid/content/Intent;

    const-class v0, Lcom/privacy/checker/ui/PrivacyDetailActivity;

    invoke-direct {p1, p0, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 2
    sget-object v0, Lcom/privacy/checker/ui/ConsentActivity;->c:Ljava/lang/String;

    const-string v1, "pri_url"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 3
    invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    .line 1
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    sget p1, Lcom/privacy/checker/ui/ConsentActivity;->b:I

    invoke-virtual {p0, p1}, Landroid/app/Activity;->setContentView(I)V

    .line 3
    sget p1, Lcom/privacy/checker/ui/ConsentActivity;->b:I

    sget v0, Les/di0;->gdpr_activity_consent:I

    if-ne p1, v0, :cond_0

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object p1

    .line 5
    sget v0, Les/ci0;->iv_app_icon:I

    invoke-virtual {p0, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    iget v2, p1, Landroid/content/pm/ApplicationInfo;->icon:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 7
    sget v0, Les/ci0;->tv_app_name:I

    invoke-virtual {p0, v0}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget p1, p1, Landroid/content/pm/ApplicationInfo;->labelRes:I

    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    const-string p1, "main"

    .line 8
    invoke-static {p0, p1}, Les/gi0;->a(Landroid/content/Context;Ljava/lang/String;)V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 2
    sget-object v0, Lcom/privacy/checker/ui/ConsentActivity;->a:Les/ai0$a;

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    .line 3
    sput-object v0, Lcom/privacy/checker/ui/ConsentActivity;->a:Les/ai0$a;

    :cond_0
    return-void
.end method
